import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 商品
 */
export function addSaler(params) {
    return request.globalRequest(apis.addSaler, 'POST', params)
}

export function getAllSalerList(params) {
    return request.globalRequest(apis.getAllSalerList, 'POST', params)
}

export function getSalerList(params) {
    return request.globalRequest(apis.getSalerList, 'POST', params)
}

export function updateSaler(params) {
    return request.globalRequest(apis.updateSaler, 'POST', params)
}
export function delSaler(params) {
    return request.globalRequest(apis.delSaler, 'POST', params)
}
export function updateFullname(params) {
    return request.globalRequest(apis.updateFullname, 'POST', params)
}
export function currentFullname(params) {
    return request.globalRequest(apis.currentFullname, 'POST', params)
}
export function checkPassword(params) {
    return request.globalRequest(apis.checkPassword, 'POST', params)
}

export function salerChangePwd(params) {
    return request.globalRequest(apis.salerChangePwd, 'POST', params)
}
export function salerChangeStatus(params) {
    return request.globalRequest(apis.salerChangeStatus, 'POST', params)
}


export default {
	addSaler,
	getAllSalerList,
	getSalerList,
	delSaler,
	updateFullname,
	currentFullname,
	checkPassword,
	salerChangePwd,
	salerChangeStatus,
	updateSaler
}